package hongcaosp.app.android.modle.impl;

import com.lzy.okgo.OkGo;
import com.lzy.okgo.model.HttpParams;

import hongcaosp.app.android.BuildConfig;
import hongcaosp.app.android.modle.BaseResponse;
import hongcaosp.app.android.modle.DataCallBack;
import hongcaosp.app.android.modle.bean.AppVersionWrap;
import hongcaosp.app.android.modle.bean.InviteRewardWrap;
import hongcaosp.app.android.modle.mi.OtherModel;

public class OtherModelImpl implements OtherModel {

    @Override
    public void appVersion(int versionNumber, DataCallBack<AppVersionWrap> callBack) {
        HttpParams params = new HttpParams();
        params.put("versionNumber", versionNumber);
        OkGo.<BaseResponse>post(BuildConfig.HOST + "/api/appVersion").params(params).execute(callBack);
    }

    @Override
    public void inviteReward(DataCallBack<InviteRewardWrap> callBack) {
        HttpParams params = new HttpParams();
        OkGo.<BaseResponse>post(BuildConfig.HOST + "/api/inviteReward").params(params).execute(callBack);
    }
}
